<?php
session_start();
if (!isset($_SESSION['username']) and !isset($_SESSION['password'])) {
    header("Location: index.php");
}
?>
    <?php
/* --------------------------------------------------------------------- */
            // mysql connection
            $user = $_SESSION['user'];
            $password = $_SESSION['password'];
            $database = $_SESSION['database'];
            $host = $_SESSION['host'];

            $condb = mysqli_connect($host, $user, $password, $database);
/* --------------------------------------------------------------------- */
            
            ?>
           
